import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute, ActivatedRouteSnapshot } from '@angular/router';
import { QueryParamsHandling } from '@angular/router/src/config';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {

  constructor(private router: Router ) { }

  ngOnInit() {
  }
  toProductDetail() {
    this.router.navigate(["/product", {id:1}]);
  }
}
